package cn.wei.reallyenjoy.diary.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: wei
 * @Date: 2021/11/28/20:29
 */
@Data
@ApiModel("首页日记对象")
public class DiaryIndexVO {

    @ApiModelProperty(value = "记录id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户名")
    private String uName;
    @ApiModelProperty(value = "用户头像")
    private String uHeadImg;

    @ApiModelProperty(value = "喜欢数量")
    private Long prefer;

    @ApiModelProperty(value = "日记图片")
    private String contentImg;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "日记内容")
    private String content;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
}
